<style>
    .center{
        text-align: center;
    }
    .left{
        text-align: left;
    }
    .right{
        text-align: right;
    }
    .row{
        font-size: 1.5rem;
    }
</style>
    <div class="row">
        <div class="col-xs-10 ">
            <label class="col-xs-4">
                订单信息
            </label>
            <div class="col-xs-8">
            </div>
        </div>
    </div>
    <hr>
    <div class="row">
        <div class="col-xs-10">
            <label class="col-xs-2 right">
                订单编号：
            </label>
            <div class="col-xs-10 left">
                {$orderinfo.order_sn}
            </div>
        </div>

        <div class="col-xs-10">
            <label class="col-xs-2 right">
                订单金额：
            </label>
            <div class="col-xs-10 left">
                总额：<label class="label label-danger">￥{$orderinfo.total_price}</label>
                运费：<label class="label label-danger">￥{$orderinfo.dispatch_price}</label>
                商品总价：<label class="label label-danger">￥{$orderinfo.goods_price}</label>
            </div>
        </div>
        <div class="col-xs-10">
            <label class="col-xs-2 right">
                订单收益：
            </label>
            <div class="col-xs-10 left">
                一级分红：<label class="label label-danger">￥{$orderinfo.commission1}</label><br>
                二级分红：<label class="label label-danger">￥{$orderinfo.commission2}</label><br>
            </div>
        </div>
        <div class="col-xs-10">
            <label class="col-xs-2 right">
                付款截图：
            </label>
            <div class="col-xs-10 left">

                {if $orderinfo.pay_img !=""}
                <img src="{$orderinfo.pay_img}" alt="" style="width: 120px; height: 100px;">
                {else/}
                暂无付款截图
                {/if}

            </div>
        </div>

        <div class="col-xs-10">
            <label class="col-xs-2 right">
                买家：
            </label>
            <div class="col-xs-10 left">
                昵称：<label class="label label-default">{$orderinfo.nick_name}</label>，手机号：<label class="label label-success">{$orderinfo.mobile}</label>
            </div>
        </div>

        <div class="col-xs-10">
            <label class="col-xs-2 right">
                订单状态：
            </label>
            <div class="col-xs-10 left">
                {if $orderinfo['order_status']==0}
                    待支付
                {/if}
            </div>
        </div>
     </div>

    <hr>
    <div class="row">
        {if condition="$orderinfo.order_status >= 2 && $orderinfo.order_status != 4"}
        <div class="col-xs-10">
            <label class="col-xs-2 right">
                发货方式：
            </label>
            <div class="col-xs-10 left">
                <label class="label label-success">{$orderinfo.send_company}</label>--<label class="label label-success">{$orderinfo.send_sn}</label>
            </div>
        </div>
        {/if}

        <div class="col-xs-10">
            <label class="col-xs-2 right">
                收货地址：
            </label>
            <div class="col-xs-10 left">
                {$orderinfo.send_address}
            </div>
        </div>

        <div class="col-xs-10">
            <label class="col-xs-2 right">
                联系人：
            </label>
            <div class="col-xs-10 left">
                姓名：<label class="label label-success">{$orderinfo.send_name}</label>，联系电话：<label class="label label-success">{$orderinfo.send_mobile}</label>
            </div>
        </div>
    </div>
    <hr>
<div class="row">
    <div class="col-xs-10 ">
        <label class="col-xs-4">
            商品信息
        </label>
        <div class="col-xs-8">
        </div>
    </div>
</div>
<hr>
<div class="row">
    <div class="col-xs-10 center">
        <table class="table table-striped">
            <thead>
            <tr>
                <th>商品名称</th>
                <th>商品缩略图</th>
                <th>规格</th>
                <th>单价</th>
                <th>数量</th>
            </tr>
            </thead>
            <tbody>
            {volist name="ordergoods" id="og"}
            <tr>
                <td>{$og.title}</td>
                <td><img style="width: 100px;" src="{$og.img_url}"></td>
                <td>{$og.spec_title}</td>
                <td>{$og.price}</td>
                <td>{$og.num}</td>
            </tr>
            {/volist}
            </tbody>

        </table>
    </div>
</div>

<div class="row">
    <div class="col-xs-10 center">
    {if $orderinfo.order_status eq 0}
    <a href="Javascript:;" class="btn btn-primary "  data-toggle="confirm"
       data-title="确认付款"
       data-content="确认付款后买家无需再付款，谨慎操作，确认付款？"
       data-url="{:url('confirm_pay',array('id'=>$orderinfo.id))}">用户已支付，确认支付</a>
    {/if}
    {if $orderinfo.order_status eq 1}
    <a href="Javascript:;" class="btn btn-primary " onclick="order_send('{$orderinfo.id}')">发货</a>
    {/if}
    {if $orderinfo.order_status eq 2}
    <a href="Javascript:;" class="btn btn-primary " data-toggle="confirm"
       data-title="确认收货"
       data-content="确认收货后将发放佣金，操作不可逆，谨慎操作，确认收货？"
       data-url="{:url('confirm_receive',array('id'=>$orderinfo.id,'uid'=>$orderinfo.uid))}">确认收获</a>
    {/if}
    </div>
</div>
<script>

    function order_send(order_id) {
        modal('{:url("send_order")}?order_id='+order_id, "订单发货", "60%", "60%");
    }
</script>





